/*
Arm Tracker and Glove Demo by Noah Zerkin (noazark AT gmail.com) 2009
Released under GNU GPLv3.0 http://www.opensource.org/licenses/gpl-3.0.html
*/

void findMin(int s){
  thumb[s][3] = thumb[s][9];
  thumb[s][4] = thumb[s][10];
  thumb[s][5] = thumb[s][11];

  fingerIndex[s][2] = fingerIndex[s][6];
  fingerIndex[s][3] = fingerIndex[s][7];

  fingerMiddle[s][2] = fingerMiddle[s][6];
  fingerMiddle[s][3] = fingerMiddle[s][7];

  fingerRing[s][2] = fingerRing[s][6];
  fingerRing[s][3] = fingerRing[s][7];

  fingerPinky[s][2] = fingerPinky[s][6];
  fingerPinky[s][3] = fingerPinky[s][7];

  wrist[s][2] = wrist[s][6];
  wrist[s][3] = wrist[s][7];
}

void findMax(int s){
  thumb[s][6] = thumb[s][9];
  thumb[s][7] = thumb[s][10];
  thumb[s][8] = thumb[s][11];

  fingerIndex[s][4] = fingerIndex[s][6];
  fingerIndex[s][5] = fingerIndex[s][7];

  fingerMiddle[s][4] = fingerMiddle[s][6];
  fingerMiddle[s][5] = fingerMiddle[s][7];

  fingerRing[s][4] = fingerRing[s][6];
  fingerRing[s][5] = fingerRing[s][7];

  fingerPinky[s][4] = fingerPinky[s][6];
  fingerPinky[s][5] = fingerPinky[s][7];

  wrist[s][4] = wrist[s][6];
  wrist[s][5] = wrist[s][7];
}
